home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!sun2!ua302aa
- From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: SYSTEM CALL RESULT
- Date: 4 Jan 1996 12:37:02 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4cghle$idc@sparcserver.lrz-muenchen.de>
- References: <4cbn2i$env@bisance.citi2.fr> <820609309snz@intellic.demon.co.uk> <DKLvt9.Jz@ariel.cs.yorku.ca>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- cs911319@ariel.cs.yorku.ca (STEPHEN HOI CHI KONG) writes:
-
- >>>Is there a way to get the result of a
- >>>system call within a C program.
-
- > I believe you have a more direct approach.
- >try
- >%man popen
-
- > This system call redirect all stdout from external command into
- >user buffer (char buf[]). Good Luck.
-
- The problem with non-standard functions like popen() is that this may
- well be true on some systems, but is not true for systems conforming to
- one of the following standards:
-
- AES, SVID2, POSIX.2 and maybe some others that I'm not aware of.
-
- UNIX specific questions should be discussed in comp.unix.programmer,
- not in comp.lang.c.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-
-
-
-
-
-
-
-
-